import org.junit.Test;

import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class test {
   @Test
     public void aaa(){

       SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
       System.out.println(format.format(System.currentTimeMillis()));
       long j = System.currentTimeMillis();
       String a = String.valueOf(new Date(j));
       System.out.println(a);
   }

}
